home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
UTILITIE
/
UNIX_COH
/
2774A.ZIP
/
TOOLS1.SHZ
/
TOOLS1
/
logname.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-03
|
287b
|
15 lines
/* this should return the effective login-name */
/* sorta like 'who' but without that junk about */
/* which tty you are on, etc. */
/* Rick Nickle, Jan 24, 1991 */
/* fcsys!trystro!rick@think.com */
#include <utmp.h>
#include <stddef.h>
main()
{
printf("%s\n",cuserid());
}